const router=require('koa-router')();
const _=require('underscore');

//Tags
router.get('/',async ctx=>{
    let list=_.times(2e2,i=>`{"id":${i},"name":"user-${i}","age":20}`);
    list='['+list+']';

    console.log(list);
    await ctx.render('test',{
        title:'Test',
        list,
        loginUser:ctx.session.loginUser,
        success:ctx.flash.success,
        error:ctx.flash.error
    });
});

module.exports=router;